import request from '@/utils/request'

// 根据id获取用户信息
export const getUserInfoAPI = id => request('/users/getById', { id })

// 获取全部用户
export const getUserAPI = params => request('/users/get', params)

// 注册新用户
export const registerUserAPI = data => request('/login/register', data, 'post')

// 编辑用户信息
export const editUserAPI = data => request('/users/edit', data, 'post')

// 禁用用户
export const delUserAPI = id => request('/users/delete', { id }, 'post')
